require("./hooks");
require("./actions");
require("./resource");
require("./sysConf");
require("./animate");
require("./evnBus");

const GloabClass = require("../gmoon/baseGloab");
const glbconfs = require("./gloabs/glbconfs"); 
const nodePools = require("./gloabs/nodePools"); 
const gloabNodes = require("./gloabs/gloabNodes"); 
const gloabLocals = require("./gloabs/gloabLocals"); 

class G extends GloabClass{
    constructor(){
        super();
        this._data = {
            userAudioOpen : true,
            userEffectOpen :  true,

            apiObject : {
                get(){
                    return window.wx ? wx : null;
                }
            }
        }
    }

    init(){
        //所有用到的 对象池
        this.append( nodePools ); 
        this.append( gloabNodes ); 
        this.append( glbconfs );
        this.append( gloabLocals );
    }
}

!window.Gloab && (function(){ 
    window.$G = window.Gloab = new G();
    window.Gloab.init(); 
})();